package com.easy.frame.servers.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.easy.frame.base.api.pojo.BasePO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.time.LocalDateTime;

/**
 * 固定token表
 *
 * @author tp
 * @since 2021-01-21
 */
@Getter
@Setter
@ToString
@TableName("sys_token")
@ApiModel("固定token表")
public class SysToken extends BasePO {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("登录名")
    private String username;

    @ApiModelProperty("access_token")
    private String accessToken;

    @ApiModelProperty("过期时间")
    private LocalDateTime expireTime;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("是否有效")
    private Integer isActive;

    @ApiModelProperty("创建人")
    private Long createBy;

    @ApiModelProperty("修改人")
    private Long updateBy;

}
